﻿import { post, put, get } from '@/utils/hettpUtils/httpRequest'

export const authIpColumns = [
	{
		title: '开始IP',
		align: 'center',
		dataIndex: 'startIp',
	},
	{
		title: '结束IP',
		align: 'center',
		dataIndex: 'endIp',
	},
	{
		title: '控制策略',
		dataIndex: 'accessStrategy',
		align: 'center',
	},
	{
		title: '创建时间',
		dataIndex: 'createTime',
		align: 'center',
	},
	{
		align: 'center',
		title: "操作",
		dataIndex: "action",
		scopedSlots: { customRender: "action" },
	},
];

export const addAuthIp = (parameter) => post('api/sysAuthIp/addSysAuthIp', parameter)
export const deleteAuthIp = (parameter) => post('api/sysAuthIp/deleteSysAuthIp', parameter)
export const updateAuthIp = (parameter) => put('api/sysAuthIp/updateSysAuthIp', parameter)
export const getAuthIp = (parameter) => get('api/sysAuthIp/getSysAuthIp', parameter)
export const queryAuthIpList = (parameter) => get('api/sysAuthIp/querySysAuthIpList', parameter)
export const queryAuthIpPage = (parameter) => get('api/sysAuthIp/querySysAuthIpPage', parameter)
